package cn.edu.scau.cmi.ema.service;

import cn.edu.scau.cmi.ema.base.CmiPagination;
import cn.edu.scau.cmi.ema.domain.Eventhazard;

import java.util.List;
import java.util.Map;
import java.util.Set;


public interface EventhazardService {

	public Eventhazard saveEventhazard(Eventhazard eventhazard);

	public Set<Eventhazard> loadEventhazards();

	public Set<Eventhazard> loadReferenceEventhazards(Set<Eventhazard> eventhazards);

	public Set<Eventhazard> loadEventhazardsByIdSet(Set<Integer> eventhazardsId);

	public Map<String, ?> loadEventhazardObjectReferencedSet(Eventhazard eventhazard);

	public Map<String, ?> loadEventhazardClassReferencedSet(Eventhazard eventhazard);

	public void deleteEventhazard(Eventhazard eventhazard);

	public void deleteEventhazards(Set<Integer> deleteEventhazardsId);

	public List<Eventhazard> findAllEventhazards(Integer startResult, Integer maxRows);

	public Eventhazard findEventhazardByPrimaryKey(Integer id);

	public Integer countEventhazards();

	public Integer countEventhazards(CmiPagination page);

	public Integer countEventhazardsByName(String queryName);

	public Integer countEventhazardsByDetachedCriteria(CmiPagination page);

}
